<?php
/**
 * Author Yulin
 * Email  dwzhanglong@126.com
 * Date   2017-7-21
 * Func   用户中心
 */
defined('IN_YuLin') || exit('NO PERMIT!');

if(!$_uid)
{
	header('Location: '.MU('login'));
	exit;
}

if($a == 'info')
{
	$tpl->display('wap/user_info');
	exit;
}

//	投资和中奖
$tmp = $db->getrow('SELECT SUM(money) AS money,SUM(prize) AS prize FROM '.Table('lottery_order').' WHERE uid = '.$_uid);
$money = ['in'=>floatval($tmp['prize']),'out'=>floatval($tmp['money'])];

$tpl->display('wap/user');